/* 基础样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom right, #e0f2fe, #e0e7ff);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 自定义工具类 */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.flex {
    display: flex;
}

.items-center {
    /* 设置垂直居中 */
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {/* 设置间距 */
    gap: 0.5rem;
}

.gap-3 {/* 设置间距 */
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.mb-4 {/* 设置底部间距 */
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mx-auto {/* 设置水平居中 */
    margin-left: auto;
    margin-right: auto;
}

.px-4 {/* 设置水平内边距 */
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.font-bold {
    font-weight: bold;
}

.cursor-pointer {
    cursor: pointer;
}

.transition-all {
    transition: all 0.3s ease;
}

.duration-300 {
    transition-duration: 300ms;
}

.hover {
    transition: all 0.3s ease;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.hidden {
    display: none;
}

/* 自定义图标 - 使用 Unicode 替代 Font Awesome */
.fa-heart::before {
    content: "❤️";
}

.fa-star::before {
    content: "⭐";
}

.fa-diamond::before {
    content: "💎";
}

.fa-bell::before {
    content: "🔔";
}

.fa-coffee::before {
    content: "☕";
}

.fa-anchor::before {
    content: "⚓";
}

.fa-clock-o::before {
    content: "🕒";
}

.fa-trophy::before {
    content: "🏆";
}

.fa-refresh::before {
    content: "🔄";
}

.fa-check-circle::before {
    content: "✅";
}

.fa-times-circle::before {
    content: "❌";
}

/* 自适应布局 */
.game-container {
    width: 90vw;
    max-width: 800px;
    height: 90vh;
    max-height: 900px;
    display: flex;
    flex-direction: column;/* 游戏菜单和游戏区域布局 */
}

.game-header {
    flex: 0 0 auto;
}

.game-stats {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    flex: 1 1 100px;
    max-width: 150px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

.game-board-wrapper {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#gameBoard {
    width: 100%;
    height: 100%;
    max-width: 60vh;
    max-height: 60vh;
    margin: 0 auto;
}

.game-footer {
    flex: 0 0 auto;
    margin-top: 1rem;
}

/* 响应式文本大小 */
@media (max-width: 600px) {
    .game-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .game-instructions {
        font-size: 0.875rem;
    }
}